#include <iostream>
#include <string>

using namespace std;

#include "list.h"

void Print(const zsw::list<int>& ls)
{
	zsw::list<int>::const_iterator cit = ls.begin();
	while (cit != ls.end())
	{
		cout << *cit << endl;
		cit++;
	}
}

int main()
{
	zsw::list<int> ls;
	ls.push_back(1);
	ls.push_back(2);
	ls.push_back(3);
	ls.push_back(4);

	//Print(ls);
	zsw::list<int>::const_iterator cit = ls.begin();
	while (cit != ls.end())
	{
		cout << *cit << endl;
		cit++;
	}
	return 0;
}